<script setup lang="ts"></script>

<template>
  <div id="app">
    <router-view ></router-view>
  </div>
</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue'
onMounted(() => {
  // 禁止双指方法
  document.documentElement.addEventListener(
    'touchstart',
    function (event) {
      if (event.touches.length > 1) {
        event.preventDefault()
      }
    },
    false
  )
  // 禁止双击放大
  var lastTouchEnd = 0
  document.documentElement.addEventListener(
    'touchend',
    function (event) {
      var now = Date.now()
      if (now - lastTouchEnd <= 300) {
        event.preventDefault()
      }
      lastTouchEnd = now
    },
    false
  )
})
</script>
<style scoped lang="scss">
#app {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}
</style>
